<?php
namespace app\model;
use think\Config;

class Resources extends Base
{
    protected $name = 'resources';

    public function getUrlAttr($value,$data){
        $domain = Config::get('qiniu.domain');
        return 'http://'.$domain.'/'.$data['key'];
    }
}